package com.fhszframe.modules;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
//@EnableConfigurationProperties(value= {Config.class})
@ConfigurationProperties(prefix="config")
public class Config {

    String code;
	
	String name;
	
	List<String> hobby;


	/**
	 * @return code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return hobby
	 */
	public List<String> getHobby() {
		return hobby;
	}

	/**
	 * @param hobby
	 */
	public void setHobby(List<String> hobby) {
		this.hobby = hobby;
	}
}